#!/bin/bash

[ -z "$1" ] && echo "Usage: $0 xxx.html" && exit 1

from=$1
to=${from%.*}.markdown

echo "Convert from $from to $to"
pandoc -f html -t markdown $from -o $to 
